package com.lingnan.eduservice.service;

import com.lingnan.eduservice.entity.po.EduSubjectPO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lingnan.eduservice.entity.vo.EduOneSubjectVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 课程科目 服务类
 * </p>
 *
 * @author zzd
 * @since 2021-08-16
 */
public interface EduSubjectService extends IService<EduSubjectPO> {

    /**
     * Excel批量导入课程
     * @param file
     * @param eduSubjectService
     */
    void addSubjectByExcel(MultipartFile file,EduSubjectService eduSubjectService);

    /**
     * 查询所有课程信息(树形展示)
     * @return
     */
    List<EduOneSubjectVO> findAllSubjectByTree();
}
